using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

using Lds.Ward.PhotoDirectory.Logic;

namespace Lds.Ward.PhotoDirectory.App
{
	public partial class InformationHiding : UserControl
	{
		public InformationHiding()
		{
			InitializeComponent();
		}

		public PostalAddress Address
		{
			get
			{
				PostalAddress addr = new PostalAddress();
				addr.City = City;
				addr.State = State;
				addr.PostalCode = Zip;
				return addr;
			}
			set
			{
				if (value != null)
				{
					City = value.City;
					State = value.State;
					Zip = value.PostalCode;
				}
				else
				{
					City = null;
					State = null;
					Zip = null;
				}
			}
		}

		public string AreaCode
		{
			get { return txtAreaCode.Text; }
			set { txtAreaCode.Text = value; }
		}

		public string City
		{
			get { return txtCity.Text; }
			set { txtCity.Text = value; }
		}

		public string State
		{
			get { return txtState.Text; }
			set { txtState.Text = value; }
		}

		public string Zip
		{
			get { return txtZip.Text; }
			set { txtZip.Text = value; }
		}
	}
}
